package com.boot.security.service.cluster;

import com.boot.security.model.po.Resource;
import com.boot.security.model.vo.SourceKey;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.List;

@Data
@SuperBuilder
@NoArgsConstructor
public class AccessSourceClusterChange {

    private SourceKey sourceKey;
    private Integer type;

    private Long resourceId;
    private List<Long> resourceIds;
    private Resource resource;
    private List<Resource> resources;

    public final static int SAVE_ONE = 0;
    public final static int SAVE_MULTI = 1;
    public final static int UPDATE_ONE = 2;
    public final static int REMOVE_ONE = 3;
    public final static int REMOVE_MULTI = 4;
}
